<template>
    <div class="recommend">
        <MySwiper></MySwiper>
    </div>
</template>
<script>
import MySwiper from '@/components/main/recommend/MySwiper'
import axios from 'axios'
export default {
    components:{
        MySwiper
    },
    methods: {
        async fetchSwiperList(){
           const res = await this.$http.get('/recommend/banner');
           console.log(res)
            
        },
        async fetchHotSong() {
            const res = await this.$http.get('/recommend/playlist');
             console.log(res)
            // this.hotSong = res.data.data.list.map(item => ({
            //     id: item.tid,
            //     img: item.cover_url_small,
            //     title: item.title,
            //     info: item.creator_info.nick
            // }))
        }
    },
    mounted() {
        this.fetchSwiperList();
        this.fetchHotSong();
    }
}
</script>